home *** CD-ROM | disk | FTP | other *** search
/ Day Cry / Day Cry CD.bin / oh_towns / taropyon / splib / splib.lzh / PRG / ZMODEM / SZHELP.C < prev    next >
Text File  |  1993-08-10  |  3KB  |  69 lines

  1. static    char       *babble[] =
  2. {
  3.     "Send file(s) with ZMODEM/YMODEM/XMODEM Protocol",
  4.     "    (Y) = Option applies to YMODEM only",
  5.     "    (Z) = Option applies to ZMODEM only",
  6. #ifdef    __TOWNS__
  7.     "Usage: sz [-2+abdefkLlNnquvwYy] [-] file ...                   (ZMODEM)",
  8.     "       sz $sb [-2adfkquv] [-] file ...                         (YMODEM)",
  9.     "       sz $sx [-2akquv] [-] file                               (XMODEM)",
  10. #else
  11.     "Usage:    sz [-2+abdefkLlNnquvwYy] [-] file ...",
  12.     "    sz [-2Ceqv] -c COMMAND",
  13.     "    sb [-2adfkquv] [-] file ...",
  14.     "    sx [-2akquv] [-] file",
  15. #endif
  16. #ifdef CSTOPB
  17.     "    2   Use 2 stop bits",
  18. #endif
  19.     "    +   Append to existing destination file                     (Z)",
  20.     "    a   (ASCII) change NL to CR/LF",
  21.     "    b   Binary file transfer override",
  22. #ifndef    __TOWNS__
  23.     "    c   send COMMAND (Z)",
  24. #endif
  25.     "    d   Change '.' to '/' in pathnames                        (Y/Z)",
  26.     "    e   Escape all control characters                           (Z)",
  27.     "    f   send Full pathname                                    (Y/Z)",
  28. #ifndef    __TOWNS__
  29.     "    i   send COMMAND, ack Immediately                           (Z)",
  30. #endif
  31.     "    k   Send 1024 byte packets                                  (Y)",
  32.     "    L N Limit subpacket length to N bytes                       (Z)",
  33.     "    l N Limit frame length to N bytes (l>=L)                    (Z)",
  34.     "    n   send file only if source newer                          (Z)",
  35.     "    N   send file only if source newer or longer                (Z)",
  36.     "    o   Use 16 bit CRC instead of 32 bit CRC                    (Z)",
  37.     "    p   Protect existing destination file                       (Z)",
  38.     "    r   Resume/Recover interrupted file transfer                (Z)",
  39.     "    q   Quiet (no progress reports)",
  40.     "    u   Unlink (remove) file after transmission",
  41.     "    v   Verbose - provide debugging information",
  42.     "    w N restrict Window to N bytes                              (Z)",
  43.     "    Y   Yes, overwrite existing file, skip if not present at rx (Z)",
  44.     "    y   Yes, overwrite existing file                            (Z)",
  45.     "    Z   Activate ZMODEM compression                             (Z)",
  46.     ""
  47. };
  48.  
  49. static    void    usage(void)
  50. {
  51.     char      **pp;
  52.  
  53. #ifdef    __TOWNS__
  54.     USR_fprintf(stderr, "\n" );
  55.     USR_fprintf(stderr, "sz ver.%s #%s for TownsOS by TaroPYON\n", MAIN_VER, EDITION_NUMBER );
  56.     USR_fprintf(stderr, "                     orignal by Chuck Forsberg, Omen Technology INC\n", VERSION);
  57.     USR_fprintf(stderr, "                                \042The High Reliability Software\042\n");
  58.     USR_fprintf(stderr, "\n" );
  59. #else
  60.     USR_fprintf(stderr, "%s for %s by Chuck Forsberg, Omen Technology INC\n",
  61.             VERSION, OS);
  62.     USR_fprintf(stderr, "\t\t\042The High Reliability Software\042\n");
  63. #endif
  64.     for (pp = babble; **pp; ++pp)
  65.         USR_fprintf(stderr, "%s\n", *pp);
  66. //    cucheck();
  67.     EXIT(0);
  68. }
  69.